package cn.getech.data.metadata.service;

import cn.getech.data.intelligence.common.utils.PageUtils2;
import cn.getech.data.metadata.entity.meta.CollectionTask;
import cn.getech.data.metadata.model.req.collectiontask.*;
import cn.getech.data.metadata.model.req.meta.CollectionTaskListReq;
import cn.getech.data.metadata.model.res.CollectionTaskAutoInfoRes;
import cn.getech.data.metadata.model.res.CollectionTaskListRes;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

public interface CollectionTask2Service extends IService<CollectionTask>{

    void saveAutoTask(CollectionTaskAutoSaveReq req);

    void updateAutoTask(CollectionTaskAutoUpdateReq req);

    void run(CollectionTaskRunReq req);

    void stop(CollectionTaskRunReq req);

    void enableOrDisable(CollectionTaskRunReq req);

    CollectionTaskAutoInfoRes info(CollectionTaskRunReq req);

    PageUtils2<CollectionTaskListRes> listBy(CollectionTaskListReq req);

    List<Map<String,Object>> userListBy();

}
